<?php /* Smarty version 2.6.22, created on 2009-05-25 16:14:45
         compiled from /home/renat/www/clean.ringo/www/control/_templates/modules/test.tpl */ ?>
<?php if (! $_GET['mode']): ?>
<p><a href=/control/module/?mode=compile>Компиляция модулей</a></p>
<p><a href=/control/module/?mode=install>Установка модулей</a></p>
<?php elseif ($_GET['mode'] == 'compile'): ?>
<a href=/control/module/>Все действия</a>
<br><br>
<form method="POST">
<select name='module'>
<?php $_from = $this->_tpl_vars['modSrc']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k']):
?>
<option><?php echo $this->_tpl_vars['k']; ?>
</option>
<?php endforeach; endif; unset($_from); ?>
</select>
<br><br>
<input type="submit" value="Создать модуль">
</form>
<?php elseif ($_GET['mode'] == 'install'): ?>

<h1>Установка модулей</h1>
<form method="POST">
<?php $_from = $this->_tpl_vars['modules']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k']):
?>
<input type="checkbox" name="mod[<?php echo $this->_tpl_vars['k']; ?>
]"> <?php echo $this->_tpl_vars['k']; ?>
 <br>
<?php endforeach; endif; unset($_from); ?>
<br>
<input type="submit" value="Установить">
</form>

<?php endif; ?>